const TOKEN_KEY = "Auth_Token";

/**
 * 设置token
 * @param {*} token
 */
export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token);
};

/**
 * 获取token
 * @param {*} token
 */
export const getToken = () => {
  return localStorage.getItem(TOKEN_KEY);
};

/**
 * 移除token
 * @param {*} token
 */
export const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY);
};